jq(function() {
	jq("#true").click(
			function() {
				alert("dffd");
				var name = jq(".pro_des>.des_name>p").html();
				var price = jq(".pro_des>.des_price>b").html().substring(1);
				var color = jq(".pro_des>.des_choice:eq(1) li[class=checked]")
						.text();
				var n_ipt = jq(".pro_des>.des_join>.j_nums .n_ipt").val();

				jq.get("BuyCarServlet?opr=addCar&name=" + name + "&price="
						+ price + "&color=" + color + "&n_ipt=" + n_ipt,
						function(data) {
							if (data == "ok") {
								location.href="BuyCar.html";

							}
						}, "text")
			})
})